<!DOCTYPE html>
<html>
<head>
    <title>Date | Sencha Test 1.0.3 </title>
    <!--  Generated on August, 11 2016 at 15:37 -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta property="og:image" content="home-images/sencha-200.png" />
    <meta property="og:title" content="Date | Sencha Test 1.0.3 " />
    <meta property="og:description" content="Creates Date instances which let you work with dates and times.If you supply no arguments, the constructor creates a Date object for today&amp;#39;sdate and time..." />
    <meta property="og:site_name" content="Sencha Documentation" />
    <meta property="og:url" content="http://docs.sencha.com/sencha_test/Date.html" />
    <meta name="description" content="Creates Date instances which let you work with dates and times.If you supply no arguments, the constructor creates a Date object for today&#39;sdate and time...">
    <style>
        /*!
         *  Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome
         *  License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
         */
        /* FONT PATH
         * -------------------------- */
        @font-face {
            font-family: 'FontAwesome';
            src: url('css/fonts/fontawesome-webfont.eot?v=4.5.0');
            src: url('css/fonts/fontawesome-webfont.eot@#iefix&v=4.5.0') format('embedded-opentype'),
            url('css/fonts/fontawesome-webfont.woff2?v=4.5.0') format('woff2'),
            url('css/fonts/fontawesome-webfont.woff?v=4.5.0') format('woff'),
            url('css/fonts/fontawesome-webfont.ttf?v=4.5.0') format('truetype'),
            url('css/fonts/fontawesome-webfont.svg?v=4.5.0#fontawesomeregular') format('svg');
            font-weight: normal;
            font-style: normal;
        }

    </style>
    <link rel="stylesheet" type="text/css" href="css/prism.css">
        <link rel="stylesheet" type="text/css" href="css/app.css">
        <link rel='canonical' href='default.htm' /><meta name='description' content='Sencha Test API Documentation from Sencha.' />
</head>
<body class=" is-api  has-guides   has-api tree-shown">
    <script type="text/javascript">
        function getOS() {
            var userAgent = navigator.userAgent || navigator.vendor || window.opera;

            if(/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
                return 'ios';
            } else if(userAgent.match(/Android/i)) {
                return 'android';
            }
        }

        var hash = document.location.hash,
                rawhash, newhash, prop, member,
                isIE8 = false;

        if(hash.indexOf('#!') > -1) {
            hash    = hash.replace('#!/api/','');
            rawhash = hash.split('-'),
            prop    = (rawhash[1] == 'static') ? rawhash[2] : rawhash[1],
            member  = (rawhash[1] == 'static') ? rawhash[3] : rawhash[2],
            newhash = rawhash[0] + '.html';

            if (prop && member) {
                newhash += '#' + prop + '-' + member;
            }

            document.location.href = newhash;
        }

        document.body.className += ' ' + getOS();
    </script>
    <!--[if IE 8]>
    <script type='text/javascript'>
        isIE8 = true;
    </script>
    <![endif]-->
    <script type="text/javascript">
        var ExtL = ExtL || {},
            specificId = '',
            isClassTemplate = true,
            isHome = false,
            isLanding = false,
            isApi = true,
            isGuide = false,
            hasApi = true,
            hasGuides = true,
            hasQuickStart = false
            singleton = false,
            pageName = 'Date',
            pageTitle = 'Sencha Test',
            homePath = '',
            product = 'test',
            pversion = '1.0.3-orion',
            hasVersions = false,
            myToolkit = 'false';

            if (!isIE8) {
                document.write('<script type=\"text/javascript\" src=\"js/prism.js\"><\/script>');
            }
    </script>
    <script type="text/javascript" src="js/ace.js"></script>
    <script type="text/javascript" src="js/beautify.js"></script>
    <script type="text/javascript" src="js/app.js"></script>
    <div id="help-wrap">
        <div class="help-header">
            Docs Help
            <div id="help-close"></div>
        </div>
        <div class="classText">
            <div class="toc">
                <h2>内容</h2>
                    <a class="toc-page-h2" href="#terms-icons-and-labels">Terms, Icons, and Labels</a>
                    <a class="toc-page-h3" href="#access-levels">Access Levels</a>
                    <a class="toc-page-h3" href="#member-types">Member Types</a>
                    <a class="toc-page-h3" href="#member-syntax">Member Syntax</a>
                    <a class="toc-page-h3" href="#member-flags">Member Flags</a>
                    <a class="toc-page-h3" href="#class-icons">Class Icons</a>
                    <a class="toc-page-h3" href="#member-icons">Member Icons</a>
                    <a class="toc-page-h2" href="#navigation-and-features">Navigation and Features</a>
                    <a class="toc-page-h3" href="#class-member-quick-nav-menu">Class Member Quick-Nav Menu</a>
                    <a class="toc-page-h3" href="#getter-and-setter-methods">Getter and Setter Methods</a>
                    <a class="toc-page-h3" href="#history-bar">History Bar</a>
                    <a class="toc-page-h3" href="#search-and-filters">Search and Filters</a>
                    <a class="toc-page-h3" href="#api-doc-class-metadata">API Doc Class Metadata</a>
                    <a class="toc-page-h3" href="#expanding-and-collapsing-examples-and-class-members">Expanding and Collapsing Examples and Class Members</a>
                    <a class="toc-page-h3" href="#desktop-vs-mobile-view">Desktop -vs- Mobile View</a>
                    <a class="toc-page-h3" href="#viewing-the-class-source">Viewing the Class Source</a>
            </div>
            <h2 id="terms-icons-and-labels">Terms, Icons, and Labels</h2>
    <p>Many classes have shortcut names used when creating (instantiating) a class with a 
    configuration object.  The shortcut name is referred to as an <code>alias</code> (or <code>xtype</code> if the 
    class extends Ext.Component).  The alias/xtype is listed next to the class name of 
    applicable classes for quick reference.</p>
    <h3 id="access-levels">Access Levels</h3>
    <p>Framework classes or their members may be specified as <code>private</code> or <code>protected</code>.  Else, 
    the class / member is <code>public</code>.  <code>Public</code>, <code>protected</code>, and <code>private</code> are access 
    descriptors used to convey how and when the class or class member should be used.</p>
    <ul>
    <li><p><strong>Public</strong> classes and class members are available for use by any other class or 
    application code and may be relied upon as a stable and persistent within major product 
    versions.  Public classes and members may safely be extended via a subclass.</p>
    </li>
    <li><p><strong>Protected</strong> class members are stable <code>public</code> members intended to be used by the 
    owning class or its subclasses.  Protected members may safely be extended via a subclass.</p>
    </li>
    <li><p><strong>Private</strong> classes and class members are used internally by the framework and are not 
    intended to be used by application developers.  Private classes and members may change or 
    be omitted from the framework at any time without notice and should not be relied upon in 
    application logic.</p>
    </li>
    </ul>
    <h3 id="member-types">Member Types</h3>
    <ul>
    <li><strong>Config</strong> - The configuration options for a class.</li>
    <li><strong>Property</strong> - Set once a class is instantiated. *See Read Only below.</li>
    <li><strong>Method</strong> - Actions that can be performed by a class.  Methods should be read as 
    instance methods and can only be called from a instance of a given class.  Static methods 
    that can be called directly from the class itself will have a <code>static</code> label next to the 
    method name.  *See Static below.</li>
    <li><strong>Event</strong> - Events are specific to the framework event system allowing for classes to 
    programmatically raise an event to be handled by one or more event handler methods.  DOM 
    events, while handled by the framework event system, are not specifically described 
    within the API documentation.  *For DOM events refer to the 
    <a href="../../https@developer.mozilla.org/en-US/docs/Web/Events">event reference</a> page from MDN.</li>
    <li><strong>Theme Variable</strong> - Variables used by the visual theme engine employed by the 
    framework.</li>
    <li><strong>Theme Mixin</strong> - Functions used by the visual theme engine employed by the framework 
    and may use values set in various Theme Variables.</li>
    </ul>
    <h3 id="member-syntax">Member Syntax</h3>
    <p>Below is an example class member that we can disect to show the syntax of a class member 
    (the lookupComponent method as viewed from the Ext.button.Button class in this case).</p>
    <div style="position: relative;" class="show-inherited show-protected members">
        <div style="border: 1px solid #E4E4E4;" class="classmembers member-protected isNotStatic isInherited member-temp-expanded" data-member-name="lookupComponent">
            <div class="collapse-toggle"></div>
            <div class="source-class"><a href="javascript:void(0);">Ext.container.Container</a><div class="viewSource"><a href="javascript:void(0);"></a><a target="_blank" href="javascript:void(0);">view source</a></div></div>
            <div class="member-header">
            <a href="javascript:void(0);" class="member-name-link"><span data-ref="method-lookupComponent" class="member-name"><strong>lookup</strong>Component</span></a>
            <span class="params-list"> ( item )</span> : <span class="memberType">Ext.Component</span>
            <div class="member-tags"><span class="protected">protected</span></div>
        </div>
            <p>Called when a raw config object is added to this container either during initialization of the <a href="javascript:void(0);">items</a> config,
        or when new items are <a href="javascript:void(0);">added), or {@link #insert inserted</a>.</p>
        <p>This method converts the passed object into an instanced child component.</p>
        <p>This may be overridden in subclasses when special processing needs to be applied to child creation.</p>
                    <div class="detail-header">Parameters</div>
                <p><span class="params-list">item</span> :
                        <span class="memberType">&nbsp;Object</span>
                </p>
                <div class="params-desc"><p>The config object being added.</p></div>
                <div class="detail-header">Returns</div>
                <span style="margin-left:12px;" class="memberType">Ext.Component</span>
                <div class="return-desc"><p>The component to be added.</p>
            </div>
        </div>
    </div>
    
    <p>Let&#39;s look at each part of the member row:</p>
    <ul>
    <li><strong>Expand/Collapse</strong> - On the left-hand size of the member row is a control used to 
    expand and collapse each member row to show / hide member details.</li>
    <li><strong>Member Name</strong> - The name of the class member (<code>lookupComponent</code> in this example)</li>
    <li><strong>Method Param</strong> - Any required or optional params used by a method (or passed to an 
    event handler method) will be listed next to the method name within parenthesis 
    (<code>( item )</code> in this example)</li>
    <li><strong>Return type</strong> - The class instance or javascript object returned by the method or 
    property (<code>Ext.Component</code> in this case).  This may be omitted for methods that do not 
    return anything other than <code>undefined</code> or may display as multiple possible values 
    separated by a forward slash <code>/</code> signifying that what is returned may depend on the 
    results of the method call (i.e. a method may return a Component if a get method calls is 
    successful or <code>false</code> if unsuccessful which would be displayed as 
    <code>Ext.Component/Boolean</code>).</li>
    <li><strong>Flags</strong> - Any flags applicable to the member will be displayed next (<code>PROTECTED</code> in 
    this example - see the Flags section below)</li>
    <li><strong>Member Origin</strong> - On the right-hand side of the member row is the class where the 
    member was initially described (<code>Ext.container.Container</code> in this example).  The source 
    class will be displayed as a blue link if the member originates from the current class 
    and gray if it is inherited from an ancestor or mixed-in class.</li>
    <li><strong>Member Source</strong> - On the right-hand side below the member origin class is a link to 
    view the member&#39;s source (<code>view source</code> in the example)</li>
    <li><strong>Params List</strong> - Each param for a class method will be listed using the same name 
    found above in parenthesis, the type of class or object expected, and a description of 
    the param (<code>item : Object</code> in the example).</li>
    <li><strong>Returns</strong> - If a class returns a value other than <code>undefined</code> a &quot;Returns&quot; section 
    will note the type of class or object returned and a description (<code>Ext.Component</code> in the 
    example)</li>
    <li><strong>Since</strong> (<em>not shown in the example</em>) - Some members will show which version of the 
    product the member was first introduced (i.e. <code>Available since 3.4.0</code> - <em>not pictured in 
    the example</em>) just after the member description</li>
    <li><strong>Default</strong> (<em>not shown in the example</em>) - Configs often show the default config value 
    to be applied to a class instance if not overridden (i.e. <code>Defaults to: false</code>)</li>
    </ul>
    <h3 id="member-flags">Member Flags</h3>
    <p>The API documentation uses a number of flags to further commnicate the class member&#39;s 
    function and intent.  The label may be represented by a text label, an abbreviation, or 
    an icon.</p>
    <ul>
    <li><strong>Required</strong> - Required config when instantiating a class</li>
    <li><strong>Bindable</strong> - The config has a setter which allows this config to be set via ViewModel 
    binding</li>
    <li><strong>Read Only</strong> - The property may be read, but cannot be used to configure / 
    re-configure a class instance at runtime</li>
    <li><strong>Singleton</strong> - Singleton classes are instantiated immediately once defined and may not 
    be instantiated manually</li>
    <li><strong>Static</strong> - A static method or property is a method or property belonging to the class 
    itself, not an instance of the class</li>
    <li><strong>Chainable</strong> - Refers to methods that return the class instance back when called.<br>This enables chained method calls like: <code>classInstance.method1().method2().etc();</code></li>
    <li><strong>Deprecated</strong> - A class or member that is scheduled for removal in a future 
    framework version and is provided in the current version for backwards compatibility.<br>Deprecated classes and members will have a message directing you to the preferred class / 
    method going forward.</li>
    <li><strong>Removed</strong> - A removed class or member that exists in documentation only as a 
    reference for users upgrading between framework versions</li>
    <li><strong>Template</strong> - A method defined within a base class designed to be overridden by 
    subclasses</li>
    <li><strong>Abstract</strong> - A class or member may be be defined as abstract.  Abstract classes and 
    members establish a class structure and provide limited, if any, code.  Class-specific 
    code will be furnished via overrides in subclasses.</li>
    <li><strong>Preventable</strong> - Events marked preventable will not fire if <code>false</code> is returned from 
    an event handler</li>
    </ul>
    <h3 id="class-icons">Class Icons</h3>
    <p><span class="icon-demo class-icon"></span> - Indicates a framework class  </p>
    <p><span class="icon-demo singleton-icon"></span> - A singleton framework class. *See the 
    singleton flag for more information  </p>
    <p><span class="icon-demo component-icon"></span> - A component-type framework class (any 
    class within the Ext JS framework that extends Ext.Component)  </p>
    <p><span class="icon-demo display-new"></span> - Indicates that the class, member, or guide 
    is new in the currently viewed version</p>
    <h3 id="member-icons">Member Icons</h3>
    <p><span class="icon-demo fa fa-cubes"></span> - Indicates a class member of type <code>config</code>  </p>
    <p><span class="icon-demo fa fa-book"></span> - Indicates a class member of type <code>property</code>  </p>
    <p><span class="icon-demo fa fa-object-group"></span> - Indicates a class member of type 
    <code>method</code>  </p>
    <p><span class="icon-demo fa fa-bolt"></span> - Indicates a class member of type <code>event</code>  </p>
    <p><span class="icon-demo fa fa-paint-brush"></span> - Indicates a class member of type 
    <code>theme variable</code>  </p>
    <p><span class="icon-demo fa fa-tint"></span> - Indicates a class member of type 
    <code>theme mixin</code>  </p>
    <p><span class="icon-demo display-new"></span> - Indicates that the class, member, or guide 
    is new in the currently viewed version</p>
    <h2 id="navigation-and-features">Navigation and Features</h2>
    <h3 id="class-member-quick-nav-menu">Class Member Quick-Nav Menu</h3>
    <p>Just below the class name on an API doc page is a row of buttons corresponding to the 
    types of members owned by the current class.  Each button shows a count of members by 
    type (this count is updated as filters are applied).  Clicking the button will navigate 
    you to that member section.  Hovering over the member-type button will reveal a popup 
    menu of all members of that type for quick navigation.</p>
    <h3 id="getter-and-setter-methods">Getter and Setter Methods</h3>
    <p>Getting and setter methods that correlate to a class config option will show up in the 
    methods section as well as in the configs section of both the API doc and the member-type 
    menus just beneath the config they work with.  The getter and setter method documentation 
    will be found in the config row for easy reference.</p>
    <h3 id="history-bar">History Bar</h3>
    <p>Your page history is kept in localstorage and displayed (using the available real estate) 
    just below the top title bar.  By default, the only search results shown are the pages 
    matching the product / version you&#39;re currently viewing.  You can expand what is 
    displayed by clicking on the <span class="icon-demo history-config"></span> button on the 
    right-hand side of the history bar and choosing the &quot;All&quot; radio option.  This will show 
    all recent pages in the history bar for all products / versions.</p>
    <p>Within the history config menu you will also see a listing of your recent page visits. 
    The results are filtered by the &quot;Current Product / Version&quot; and &quot;All&quot; radio options. 
    Clicking on the <span class="icon-demo history-clear"></span> button will clear the history bar as 
    well as the history kept in local storage.</p>
    <p>If &quot;All&quot; is selected in the history config menu the checkbox option for &quot;Show product 
    details in the history bar&quot; will be enabled.  When checked, the product/version for each 
    historic page will show alongside the page name in the history bar.  Hovering the cursor 
    over the page names in the history bar will also show the product/version as a tooltip.</p>
    <h3 id="search-and-filters">Search and Filters</h3>
    <p>Both API docs and guides can be searched for using the search field at the top of the 
    page.</p>
    <p>On API doc pages there is also a filter input field that filters the member rows 
    using the filter string.  In addition to filtering by string you can filter the class 
    members by access level and inheritance.  This is done using the checkboxes at the top of 
    the page.  <strong>Note</strong> that filtering out <code>private</code> members also filters the API class 
    navigation tree.</p>
    <p>Clicking on an empty search field will show your last 10 searches for quick navigation.</p>
    <h3 id="api-doc-class-metadata">API Doc Class Metadata</h3>
    <p>Each API doc page (with the exception of Javascript primitives pages) has a menu view of 
    metadata relating to that class.  This metadata view will have one or more of the 
    following:</p>
    <ul>
    <li><strong>Alternate Name</strong> - One or more additional class name synonymns (in Ext JS 6.0.0 the 
    <code>Ext.button.Button</code> class has an alternate class name of <code>Ext.Button</code>).  Alternate class 
    names are commonly maintained for backward compatibility.</li>
    <li><strong>Hierarchy</strong> - The hierararchy view lists the inheritance chain of the current class 
    up through its ancestor classes up to the root base class.</li>
    <li><strong>Mixins</strong> - A list of classes that are mixed into the current class</li>
    <li><strong>Inherited Mixins</strong> - A list of classes that are mixed into an ancestor of the current 
    class</li>
    <li><strong>Requires</strong> - All classes required to be defined for the class to be instantiated</li>
    <li><strong>Uses</strong> - A list of classes potentially used by the class at some point in its 
    lifecycle, but not necessarily requried for the class to initially be instantiated</li>
    <li><strong>Subclasses</strong> - Classes that extend the current class</li>
    </ul>
    <h3 id="expanding-and-collapsing-examples-and-class-members">Expanding and Collapsing Examples and Class Members</h3>
    <p>Runnable examples (Fiddles) are expanded on a page by default.  You can collapse and 
    expand example code blocks individually using the arrow on the top-left of the code 
    block.  You can also toggle the collapse state of all examples using the toggle button on 
    the top-right of the page.  The toggle-all state will be remembered between page loads.</p>
    <p>Class members are collapsed on a page by default.  You can expand and collapse members 
    using the arrow icon on the left of the member row or globally using the expand / 
    collapse all toggle button top-right.</p>
    <h3 id="desktop-vs-mobile-view">Desktop -vs- Mobile View</h3>
    <p>Viewing the docs on narrower screens or browsers will result in a view optimized for a 
    smaller form factor.  The primary differences between the desktop and &quot;mobile&quot; view are:</p>
    <ul>
    <li>Global navigation will be located in a menu on the left-hand side accessible via the 
    hamburger menu icon.  The menu houses the following (on most pages):<ul>
    <li>The name of the current product (as a link to the product landing page)</li>
    <li>The Sencha icon used to navigate back to the documentation home page</li>
    <li>The product menu drop-down button</li>
    <li>Tabs of navigation trees for the API docs and guides</li>
    </ul>
    </li>
    <li>Current context navigation and tools is located on the right-hand side accessible via 
    the gear icon.  The context menu houses teh following:<ul>
    <li>The global search input field</li>
    <li>(<em>API doc</em>) A &quot;Filters&quot; tab with the member filter, expand / collapse all examples 
    button, expand / collapse all member rows button, the access level filter checkboxes, 
    and the counts of each member</li>
    <li>(<em>API doc</em>) A &quot;Related Classes&quot; tab containing the menu of metadata related to the 
    current class</li>
    <li>(<em>Guides</em>) The table of contents for the guide</li>
    </ul>
    </li>
    </ul>
    <h3 id="viewing-the-class-source">Viewing the Class Source</h3>
    <p>The class source can be viewed by clicking on the class name at the top of an API doc 
    page.  The source for class members can be viewed by clicking on the &quot;view source&quot; link 
    on the right-hand side of the member row.</p>
    
        </div>
    </div>
    <div id="header">
        <div class="logo">
            <a href="../"><img height="32" src="home-images/sencha_logo_thumb.png"/></a>
        </div>
        <span id="mobile-main-nav-menu-btn" class="fa fa-bars"></span>
        <span data-tip="Product / Version Menu" class="fa fa-chevron-circle-down product-menu-btn tooltip tooltip-tl-bl landing-product-menu-btn"><div class="callout callout-b"></div></span>
            <a class="page-title class" href="src/Date.js.html#Date" target="_blank">Date</a>
        <span id="mobile-context-menu-btn" class="fa fa-cog"></span>
    </div>
    <div id="centerContent">
        <div id="history-nav">
            <span id="history-config" class="history-config tooltip tooltip-tr-br" data-tip="Configure / Clear History"><div class="callout callout-b"></div></span>
        </div>
        <div id="class-tree-ct" class="class-tree">
            <h2 class="product-header">
                <div class="logo">
                    <a href="../"><img src="home-images/sencha_logo1x.png"/></a>
                </div>
                <a href="index.html">Sencha Test 1.0.3 </a>
                <span data-tip="Product / Version Menu" class="fa fa-chevron-circle-down product-menu-btn  tooltip tooltip-tl-bl"><div class="callout callout-b"></div></span>
            </h2>
            <div id="tree-header" class="pre-load">
                <div id="guideTab" class="toolbarHeaderButton">
                    Guides
                </div>
                <div id="apiTab" class="toolbarHeaderButton active-tab">
                    API
                </div>
                <div id="hide-class-tree"></div>
            </div>
            <div id="tree-scroller">
                <div id="tree" class="show-private show-protected is-tree">
                    <div class="tree-leaf tree-member">
    <div class="tree-leaf-content isNotLeaf" id="singleton-st" isLeaf="false">
        <span class="tree-expando">▸</span>
            <span class="singleton-type"></span>
            <a class="tree-leaf-text" href="ST.html">ST</a>
    </div>
        <div class="tree-child-leaves hidden">
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isNotLeaf" id="branch-st-event" isLeaf="false">
                        <span class="tree-expando">▸</span>
                                <span class="folder-type"></span>
                            <a class="tree-leaf-text">event</a>
                    </div>
                        <div class="tree-child-leaves hidden">
                                <div class="tree-leaf tree-member-protected">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-driver" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.Driver.html">Driver</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member-private">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-event" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.Event.html">Event</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member-private">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-gesturequeue" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.GestureQueue.html">GestureQueue</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member-private">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-injector" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.Injector.html">Injector</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-playable" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.Playable.html">Playable</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-player" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.Player.html">Player</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-event-recorder" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.event.Recorder.html">Recorder</a>
                                    </div>
                                </div>
                        </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isNotLeaf" id="branch-st-future" isLeaf="false">
                        <span class="tree-expando">▸</span>
                                <span class="folder-type"></span>
                            <a class="tree-leaf-text">future</a>
                    </div>
                        <div class="tree-child-leaves hidden">
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-button" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Button.html">Button</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-cell" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Cell.html">Cell</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-checkbox" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.CheckBox.html">CheckBox</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-combobox" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.ComboBox.html">ComboBox</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-component" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Component.html">Component</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-dataview" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.DataView.html">DataView</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-element" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Element.html">Element</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-field" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Field.html">Field</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-grid" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Grid.html">Grid</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-item" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Item.html">Item</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-panel" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Panel.html">Panel</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-picker" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Picker.html">Picker</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-row" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Row.html">Row</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-select" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Select.html">Select</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member-private">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-selection" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.Selection.html">Selection</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member-private">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-selectionmodel" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.SelectionModel.html">SelectionModel</a>
                                    </div>
                                </div>
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-future-textfield" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.future.TextField.html">TextField</a>
                                    </div>
                                </div>
                        </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isNotLeaf" id="branch-st-locator" isLeaf="false">
                        <span class="tree-expando">▸</span>
                                <span class="folder-type"></span>
                            <a class="tree-leaf-text">locator</a>
                    </div>
                        <div class="tree-child-leaves hidden">
                                <div class="tree-leaf tree-member">
                                    <div class="tree-leaf-content isLeaf" id="node-st-locator-strategy" isLeaf="true">
                                        <span class="tree-expando hidden">▸</span>
                                                <span class="class-type"></span>
                                            <a class="tree-leaf-text" href="ST.locator.Strategy.html">Strategy</a>
                                    </div>
                                </div>
                        </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="node-st-alert" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Alert.html">Alert</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-protected">
                    <div class="tree-leaf-content isLeaf" id="node-st-block" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Block.html">Block</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="node-st-browser" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Browser.html">Browser</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-browser-1" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.browser-1.html">browser</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="node-st-element" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Element.html">Element</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="node-st-gate" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Gate.html">Gate</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-jasmine" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.jasmine.html">jasmine</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-locator" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.Locator.html">Locator</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-options" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.options.html">options</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-os-1" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.os-1.html">os</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="node-st-os" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.OS.html">OS</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="node-st-spec" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Spec.html">Spec</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-status" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.status.html">status</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="node-st-suite" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Suite.html">Suite</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-supports" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.supports.html">supports</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-system" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.system.html">system</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-private">
                    <div class="tree-leaf-content isLeaf" id="node-st-test" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Test.html">Test</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member-protected">
                    <div class="tree-leaf-content isLeaf" id="singleton-st-tests" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                            <span class="singleton-type"></span>
                            <a class="tree-leaf-text" href="ST.Tests.html">Tests</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="node-st-version" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.Version.html">Version</a>
                    </div>
                </div>
                <div class="tree-leaf tree-member">
                    <div class="tree-leaf-content isLeaf" id="node-st-watchdog" isLeaf="true">
                        <span class="tree-expando hidden">▸</span>
                                <span class="class-type"></span>
                            <a class="tree-leaf-text" href="ST.WatchDog.html">WatchDog</a>
                    </div>
                </div>
        </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-array" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="Array.html">Array</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-boolean" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="Boolean.html">Boolean</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-date" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="Date.html">Date</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-function" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="Function.html">Function</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-number" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="Number.html">Number</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-object" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="Object.html">Object</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-regexp" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="RegExp.html">RegExp</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-string" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="String.html">String</a>
    </div>
</div>

                    <div class="fa fa-plus toggle-tree hide tooltip tooltip-tr-br" data-expand="Expand All Classes" data-collapse="Collapse All Classes"><div class="callout callout-b"></div></div>
                </div>
                <div id="guide-tree" class="hide is-tree">
                    <div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-product_overview" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/product_overview.html">Sencha Test 概述</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-sencha_test_installation" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/sencha_test_installation.html">安装和配置</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-getting_started" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/getting_started.html">入门</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-testing_existing_apps" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/testing_existing_apps.html">测试已有应用程序</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-testing_applications" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/testing_applications.html">测试新建应用程序</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-command_line_archive_server" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/command_line_archive_server.html">命令行工具CLI和归档服务器</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-test_projects_scenarios_suites" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/test_projects_scenarios_suites.html">项目, 场景(Scenarios)和套件(Suites)</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-using_the_test_runner" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/using_the_test_runner.html">使用Test Runner</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-unit_functional_tests" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/unit_functional_tests.html">单元测试 vs 功能测试</a>
    </div>
</div>
<div class="tree-leaf tree-member">
    <div class="tree-leaf-content isLeaf" id="node-release_notes" isLeaf="true">
        <span class="tree-expando hidden">▸</span>
                <span class="class-type"></span>
            <a class="tree-leaf-text" href="guides/release_notes.html">发布说明</a>
    </div>
</div>

                    <div class="fa fa-plus toggle-tree hide tooltip tooltip-tr-br" data-expand="Expand All Guides" data-collapse="Collapse All Guides"><div class="callout callout-b"></div></div>
                </div>
            </div>
        </div>
        <a href="#" id="back-to-top">top </a>
        <div id="rightMembers" class="">
            
            
            <div id="member-toolbars">
    <div id="member-class-name">
            <span class='class-icon'></span>

        <h1 class='class'><a href="src/Date.js.html#Date" target="_blank">Date</a>
        </h1>
    </div>
</div>
<div class="context-menu-ct">
    <div class="context-header">
        <div id="hide-context-menu" class="fa fa-caret-right"></div>
    </div>
    <div class="search">
        <form autocomplete="off">
            <input type="text" type="search" placeholder="search" id="searchtext">
            <i id="filtersubmit" class="fa fa-search"></i>
            <span id="help-btn" data-tip="Docs Help" class="tooltip tooltip-tr-br"><div class="callout callout-b"></div></span>
        </form>
    </div>
    <div class="context-menu-tabs">
        <div id="filterTab" class="toolbarHeaderButton active-tab">
            Filters
        </div>
        <div id="relatedClassesTab" class="toolbarHeaderButton">
            Related Classes
        </div>
    </div>
    <div id="filters-ct">
        <div id="toolbar">
            <div class="memberFilter">
                <input placeholder="Filter members..." type="search" id="member-filter-field" name="member-filter-field">
                <div id="toggleExamples" class="fa fa-code tooltip tooltip-tr-br" data-expand="Expand All Examples" data-collapse="Collapse All Examples"><div class="callout callout-b"></div></div>
                <div id="toggleAll" class="fa fa-plus tooltip tooltip-tr-br" data-expand="Expand All Members" data-collapse="Collapse All Members"><div class="callout callout-b"></div></div>
            </div>
            <div id="member-display">
                <div class="member-access-display"><label><input id="publicCheckbox" type="checkbox" value="member-public" checked=true/>Public</label></div>
                <div class="member-access-display"><label><input id="protectedCheckbox" type="checkbox" value="member-protected" checked=true/>Protected</label></div>
                <div class="member-access-display"><label><input id="privateCheckbox" type="checkbox" value="member-private" checked=true/>Private</label></div>
                <div class="member-access-display"><label><input id="inheritedCheckbox" type="checkbox" value="member-inherited" checked=true/>Inherited</label></div>
            </div>
            <div id="member-types-menu" class="member-types-menu">
                    <a href="#properties" id="properties-button-link"><div id="properties-nav-btn" class="toolbarButton disabled">
                        <i class="fa fa-book"></i>
                        <span class="member-type-btn-text">properties</span>
                        <div id="properties-count" class="nav-btn-count"></div>
                        <div class="nav-btn-mask"></div>
                    </div></a>
                    <a href="#methods" id="methods-button-link"><div id="methods-nav-btn" class="toolbarButton disabled">
                        <i class="fa fa-object-group"></i>
                        <span class="member-type-btn-text">methods</span>
                        <div id="methods-count" class="nav-btn-count"></div>
                        <div class="nav-btn-mask"></div>
                    </div></a>
            </div>
        </div>
    </div>
    <div id="related-classes-context-ct" class="hide">
        <!-- We'll programmatically copy in the related classes elements here on page load -->
    </div>
</div>
<div id="class-body-wrap" class="class-body-wrap">
    <div class="body-wrap-inner">
        <div id="classText" class="classText">
            <div class="classHead">
                <div class="classMeta">
                        <div class="classMetaColumn">
                            <h3>Hierarchy</h3>
                            <div class="list"><div class="hierarchy">Date</div></div>
                        </div>
                </div>
            </div>
                <h2>Summary</h2>
                <p>Creates <a href='Date.html'>Date</a> instances which let you work with dates and times.</p>
<p>If you supply no arguments, the constructor creates a <a href='Date.html'>Date</a> object for today&#39;s
date and time according to local time. If you supply some arguments but not
others, the missing arguments are set to 0. If you supply any arguments, you
must supply at least the year, month, and day. You can omit the hours, minutes,
seconds, and milliseconds.</p>
<p>The date is measured in milliseconds since midnight 01 January, 1970 UTC. A day
holds 86,400,000 milliseconds. The <a href='Date.html'>Date</a> object range is -100,000,000 days to
100,000,000 days relative to 01 January, 1970 UTC.</p>
<p>The <a href='Date.html'>Date</a> object provides uniform behavior across platforms.</p>
<p>The <a href='Date.html'>Date</a> object supports a number of UTC (universal) methods, as well as
local time methods. UTC, also known as Greenwich Mean Time (GMT), refers to the
time as set by the World Time Standard. The local time is the time known to the
computer where JavaScript is executed.</p>
<p>Invoking <a href='Date.html'>Date</a> in a non-constructor context (i.e., without the <code>new</code> operator)
will return a string representing the current time.</p>
<p>Note that <a href='Date.html'>Date</a> objects can only be instantiated by calling <a href='Date.html'>Date</a> or using it
as a constructor; unlike other JavaScript object types, <a href='Date.html'>Date</a> objects have no
literal syntax.</p>
<h1 id="date_several-ways-to-assign-dates">Several ways to assign dates<a class="quick-link" href="#date_several-ways-to-assign-dates"></a></h1>
<p>The following example shows several ways to assign dates:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">today = new Date();
birthday = new Date(&quot;December 19, 1989 03:24:00&quot;);
birthday = new Date(1989,11,19);
birthday = new Date(1989,11,17,3,24,0);
</code></pre></div><h1 id="date_calculating-elapsed-time">Calculating elapsed time<a class="quick-link" href="#date_calculating-elapsed-time"></a></h1>
<p>The following examples show how to determine the elapsed time between two dates:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">// using static methods
var start = Date.now();
// the event you&#39;d like to time goes here:
doSomethingForALongTime();
var end = Date.now();
var elapsed = end - start; // time in milliseconds

// if you have Date objects
var start = new Date();
// the event you&#39;d like to time goes here:
doSomethingForALongTime();
var end = new Date();
var elapsed = end.getTime() - start.getTime(); // time in milliseconds

// if you want to test a function and get back its return
function printElapsedTime (fTest) {
    var nStartTime = Date.now(), vReturn = fTest(), nEndTime = Date.now();
    alert(&quot;Elapsed time: &quot; + String(nEndTime - nStartTime) + &quot;
    milliseconds&quot;);
    return vReturn;
}

yourFunctionReturn = printElapsedTime(yourFunction);
</code></pre></div><h1 id="date_iso-8601-formatted-dates">ISO 8601 formatted dates<a class="quick-link" href="#date_iso-8601-formatted-dates"></a></h1>
<p>The following example shows how to formate a date in an ISO 8601 format using
UTC:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">// use a function for the exact format desired...
function ISODateString(d){
function pad(n){return n&lt;10 ? &#39;0&#39;+n : n}
return d.getUTCFullYear()+&#39;-&#39;
    + pad(d.getUTCMonth()+1)+&#39;-&#39;
    + pad(d.getUTCDate())+&#39;T&#39;
    + pad(d.getUTCHours())+&#39;:&#39;
    + pad(d.getUTCMinutes())+&#39;:&#39;
    + pad(d.getUTCSeconds())+&#39;Z&#39;}

var d = new Date();
print(ISODateString(d)); // prints something like 2009-09-28T19:03:12Z
</code></pre></div><div class="notice">
Documentation for this class comes from <a href="../../https@developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date" class="external-link" target="_blank">MDN</a>
and is available under <a href="../../creativecommons.org/licenses/by-sa/2.0/" class="external-link" target="_blank">Creative Commons: Attribution-Sharealike license</a>.
</div>

        </div>
        <div class="no-visible-members-warning">No members found using the current filters</div>
        <div class="members">
                <div id="properties-ct">
                    <h2 id="properties" class="type">properties</h2>
                    <a name="properties"></a>
                          
                          
                </div>
                <div id="methods-ct">
                    <h2 id="methods" class="type">methods</h2>
                    <a name="methods"></a>
                            <div id="method-constructor" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="constructor" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-constructor">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-constructor" class="member-name-link"><span data-ref="method-constructor" class="member-name">constructor</span></a>
            <span class="params-list"> (
                        
                        [year]
                        , 
                        [month]
                        , 
                        [day]
                        , 
                        [hour]
                        , 
                        [minute]
                        , 
                        [second]
                        , 
                        [millisecond]
                            

                )</span>


            <div class="member-tags">
            </div>
        </h2>

            <p>Creates new Date object.</p>

            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--year">year</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a> / <a href='String.html'>String</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Either UNIX timestamp, date string, or year (when month and day parameters also provided):</p>
<ul>
<li><p>Integer value representing the number of milliseconds since 1 January 1970
00:00:00 UTC (Unix Epoch).</p>
</li>
<li><p>String value representing a date. The string should be in a format recognized
by the parse method (IETF-compliant RFC 1123 timestamps).</p>
</li>
<li><p>Integer value representing the year. For compatibility (in order to avoid the
Y2K problem), you should always specify the year in full; use 1998, rather
than 98.</p>
</li>
</ul>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--month">month</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Integer value representing the month, beginning with 0 for January to 11
for December.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--day">day</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Integer value representing the day of the month (1-31).</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--hour">hour</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Integer value representing the hour of the day (0-23).</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--minute">minute</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Integer value representing the minute segment (0-59) of a time reading.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--second">second</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Integer value representing the second segment (0-59) of a time reading.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-constructor--millisecond">millisecond</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        <i class="memberType">(optional)</i>
                    </p>
                    <div class="params-desc"><p>Integer value representing the millisecond segment (0-999) of a time reading.</p>
</div>

                </div>

    </div>
  
                            <div id="method-getDate" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getDate" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getDate">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getDate" class="member-name-link"><span data-ref="method-getDate" class="member-name">getDate</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the day of the month for the specified date according to local time.</p>
<p>The second statement below assigns the value 25 to the variable <code>day</code>, based on the value of the
<a href='Date.html'>Date</a> object <code>Xmas95</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">Xmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)
day = Xmas95.getDate()
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 1 and 31.</p>
</div>

    </div>
  
                            <div id="method-getDay" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getDay" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getDay">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getDay" class="member-name-link"><span data-ref="method-getDay" class="member-name">getDay</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the day of the week for the specified date according to local time.</p>
<p>The value returned by <a href='#method-getDay'>getDay</a> is an integer corresponding to the day of the week: 0 for Sunday, 1
for Monday, 2 for Tuesday, and so on.</p>
<p>The second statement below assigns the value 1 to <code>weekday</code>, based on the value of the <a href='Date.html'>Date</a>
object <code>Xmas95</code>. December 25, 1995, is a Monday.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">Xmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;);
weekday = Xmas95.getDay();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>A numeric representation of the day from Sunday (0) to
Saturday (6).</p>
</div>

    </div>
  
                            <div id="method-getFullYear" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getFullYear" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getFullYear">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getFullYear" class="member-name-link"><span data-ref="method-getFullYear" class="member-name">getFullYear</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the year of the specified date according to local time.</p>
<p>The value returned by <a href='#method-getFullYear'>getFullYear</a> is an absolute number. For dates between the years 1000 and
9999, <a href='#method-getFullYear'>getFullYear</a> returns a four-digit number, for example, 1995. Use this function to make sure
a year is compliant with years after 2000.</p>
<p>Use this method instead of the <code>getYear</code> method.</p>
<p>The following example assigns the four-digit value of the current year to the variable yr.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var today = new Date();
var yr = today.getFullYear();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Four digit representation of the year.</p>
</div>

    </div>
  
                            <div id="method-getHours" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getHours" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getHours">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getHours" class="member-name-link"><span data-ref="method-getHours" class="member-name">getHours</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the hour for the specified date according to local time.</p>
<p>The second statement below assigns the value 23 to the variable <code>hours</code>, based on the value of the
<a href='Date.html'>Date</a> object <code>Xmas95</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">Xmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)
hours = Xmas95.getHours()
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 and 23, using 24-hour clock.</p>
</div>

    </div>
  
                            <div id="method-getMilliseconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getMilliseconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getMilliseconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getMilliseconds" class="member-name-link"><span data-ref="method-getMilliseconds" class="member-name">getMilliseconds</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the milliseconds in the specified date according to local time.</p>
<p>The following example assigns the milliseconds portion of the current time to the variable ms.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var ms;
Today = new Date();
ms = Today.getMilliseconds();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>A number between 0 and 999.</p>
</div>

    </div>
  
                            <div id="method-getMinutes" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getMinutes" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getMinutes">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getMinutes" class="member-name-link"><span data-ref="method-getMinutes" class="member-name">getMinutes</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the minutes in the specified date according to local time.</p>
<p>The second statement below assigns the value 15 to the variable <code>minutes</code>, based on the value of
the <a href='Date.html'>Date</a> object <code>Xmas95</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">Xmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)
minutes = Xmas95.getMinutes()
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 and 59.</p>
</div>

    </div>
  
                            <div id="method-getMonth" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getMonth" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getMonth">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getMonth" class="member-name-link"><span data-ref="method-getMonth" class="member-name">getMonth</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the month in the specified date according to local time.</p>
<p>The second statement below assigns the value 11 to the variable <code>month</code>, based on the value of the
<a href='Date.html'>Date</a> object <code>Xmas95</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">Xmas95 = new Date(&quot;December 25, 1995 23:15:00&quot;)
month = Xmas95.getMonth()
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>An integer between 0 and 11. 0 corresponds to January, 1 to February, and so on.</p>
</div>

    </div>
  
                            <div id="method-getSeconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getSeconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getSeconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getSeconds" class="member-name-link"><span data-ref="method-getSeconds" class="member-name">getSeconds</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the seconds in the specified date according to local time.</p>
<p>The second statement below assigns the value 30 to the variable <code>secs</code>, based on the value of the
<a href='Date.html'>Date</a> object <code>Xmas95</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">Xmas95 = new Date(&quot;December 25, 1995 23:15:30&quot;)
secs = Xmas95.getSeconds()
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 and 59.</p>
</div>

    </div>
  
                            <div id="method-getTime" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getTime" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getTime">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getTime" class="member-name-link"><span data-ref="method-getTime" class="member-name">getTime</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the numeric value corresponding to the time for the specified date according to
universal time.</p>
<p>The value returned by the <a href='#method-getTime'>getTime</a> method is the number of milliseconds since 1 January 1970
00:00:00 UTC. You can use this method to help assign a date and time to another <a href='Date.html'>Date</a> object.</p>
<p>This method is functionally equivalent to the <a href='#method-valueOf'>valueOf</a> method.</p>
<p>Using getTime for copying dates</p>
<p>Constructing a date object with the identical time value.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var birthday = new Date(1994, 12, 10);
var copy = new Date();
copy.setTime(birthday.getTime());
</code></pre></div><p>Measuring execution time</p>
<p>Subtracting two subsequent getTime calls on newly generated Date objects, give the time span
between these two calls. This can be used to calculate the executing time of some operations.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var end, start;

start = new Date();
for (var i = 0; i &lt; 1000; i++)
    Math.sqrt(i);
end = new Date();

console.log(&quot;Operation took &quot; + (end.getTime() - start.getTime()) + &quot; msec&quot;);
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Number of milliseconds since 1/1/1970 (GMT).</p>
</div>

    </div>
  
                            <div id="method-getTimezoneOffset" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getTimezoneOffset" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getTimezoneOffset">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getTimezoneOffset" class="member-name-link"><span data-ref="method-getTimezoneOffset" class="member-name">getTimezoneOffset</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the time-zone offset from UTC, in minutes, for the current locale.</p>
<p>The time-zone offset is the difference, in minutes, between UTC and local time. Note that this
means that the offset is positive if the local timezone is behind UTC and negative if it is ahead.
For example, if your time zone is UTC+10 (Australian Eastern Standard Time), -600 will be returned.
Daylight savings time prevents this value from being a constant even for a given locale</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">x = new Date()
currentTimeZoneOffsetInHours = x.getTimezoneOffset()/60
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Minutes between GMT and local time.</p>
</div>

    </div>
  
                            <div id="method-getUTCDate" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCDate" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCDate">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCDate" class="member-name-link"><span data-ref="method-getUTCDate" class="member-name">getUTCDate</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the day (date) of the month in the specified date according to universal time.</p>
<p>The following example assigns the day portion of the current date to the variable <code>d</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var d;
Today = new Date();
d = Today.getUTCDate();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Integer between 1 and 31 representing the day.</p>
</div>

    </div>
  
                            <div id="method-getUTCDay" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCDay" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCDay">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCDay" class="member-name-link"><span data-ref="method-getUTCDay" class="member-name">getUTCDay</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the day of the week in the specified date according to universal time.</p>
<p>The following example assigns the weekday portion of the current date to the variable <code>weekday</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var weekday;
Today = new Date()
weekday = Today.getUTCDay()
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>A numeric representation of the day from Sunday (0) to
Saturday (6).</p>
</div>

    </div>
  
                            <div id="method-getUTCFullYear" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCFullYear" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCFullYear">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCFullYear" class="member-name-link"><span data-ref="method-getUTCFullYear" class="member-name">getUTCFullYear</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the year in the specified date according to universal time.</p>
<p>The following example assigns the four-digit value of the current year to the variable <code>yr</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var yr;
Today = new Date();
yr = Today.getUTCFullYear();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Four digit representation of the year.</p>
</div>

    </div>
  
                            <div id="method-getUTCHours" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCHours" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCHours">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCHours" class="member-name-link"><span data-ref="method-getUTCHours" class="member-name">getUTCHours</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the hours in the specified date according to universal time.</p>
<p>The following example assigns the hours portion of the current time to the variable <code>hrs</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var hrs;
Today = new Date();
hrs = Today.getUTCHours();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 and 23.</p>
</div>

    </div>
  
                            <div id="method-getUTCMilliseconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCMilliseconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCMilliseconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCMilliseconds" class="member-name-link"><span data-ref="method-getUTCMilliseconds" class="member-name">getUTCMilliseconds</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the milliseconds in the specified date according to universal time.</p>
<p>The following example assigns the milliseconds portion of the current time to the variable <code>ms</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var ms;
Today = new Date();
ms = Today.getUTCMilliseconds();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Milliseconds portion of the Date.</p>
</div>

    </div>
  
                            <div id="method-getUTCMinutes" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCMinutes" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCMinutes">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCMinutes" class="member-name-link"><span data-ref="method-getUTCMinutes" class="member-name">getUTCMinutes</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the minutes in the specified date according to universal time.</p>
<p>The following example assigns the minutes portion of the current time to the variable <code>min</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var min;
Today = new Date();
min = Today.getUTCMinutes();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 and 59.</p>
</div>

    </div>
  
                            <div id="method-getUTCMonth" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCMonth" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCMonth">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCMonth" class="member-name-link"><span data-ref="method-getUTCMonth" class="member-name">getUTCMonth</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the month of the specified date according to universal time.</p>
<p>The following example assigns the month portion of the current date to the variable <code>mon</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var mon;
Today = new Date();
mon = Today.getUTCMonth();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 (January) and 11 (December).</p>
</div>

    </div>
  
                            <div id="method-getUTCSeconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="getUTCSeconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-getUTCSeconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-getUTCSeconds" class="member-name-link"><span data-ref="method-getUTCSeconds" class="member-name">getUTCSeconds</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the seconds in the specified date according to universal time.</p>
<p>The following example assigns the seconds portion of the current time to the variable <code>sec</code>.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var sec;
Today = new Date();
sec = Today.getUTCSeconds();
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Value between 0 and 59.</p>
</div>

    </div>
  
                          
                          
                          
                            <div id="method-setDate" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setDate" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setDate">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setDate" class="member-name-link"><span data-ref="method-setDate" class="member-name">setDate</span></a>
            <span class="params-list"> (
                        
                        dayValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the day of the month (1-31) for a specified date according to local time.</p>
<p>If the parameter you specify is outside of the expected range, <a href='#method-setDate'>setDate</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 0 for <code>dayValue</code>, the
date will be set to the last day of the previous month.</p>
<p>The second statement below changes the day for theBigDay to July 24 from its original value.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date(&quot;July 27, 1962 23:30:00&quot;)
theBigDay.setDate(24)
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setDate--dayValue">dayValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer from 1 to 31, representing the day of the month.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setFullYear" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setFullYear" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setFullYear">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setFullYear" class="member-name-link"><span data-ref="method-setFullYear" class="member-name">setFullYear</span></a>
            <span class="params-list"> (
                        
                        yearValue
                        , 
                        monthValue
                        , 
                        dayValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the full year (4 digits for 4-digit years) for a specified date according to
local time.</p>
<p>If you do not specify the <code>monthValue</code> and <code>dayValue</code> parameters, the values returned from the
<a href='#method-getMonth'>getMonth</a> and <a href='#method-getDate'>getDate</a> methods are used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setFullYear'>setFullYear</a> attempts to update the
other parameters and the date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you
specify 15 for monthValue, the year is incremented by 1 (year + 1), and 3 is used for the month.</p>
<p>theBigDay = new Date();
theBigDay.setFullYear(1997);</p>

            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setFullYear--yearValue">yearValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer specifying the numeric value of the year, for example, 1995.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setFullYear--monthValue">monthValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 11 representing the months January through
December.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setFullYear--dayValue">dayValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 1 and 31 representing the day of the month. If you
specify the <code>dayValue</code> parameter, you must also specify the <code>monthValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setHours" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setHours" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setHours">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setHours" class="member-name-link"><span data-ref="method-setHours" class="member-name">setHours</span></a>
            <span class="params-list"> (
                        
                        hoursValue
                        , 
                        minutesValue
                        , 
                        secondsValue
                        , 
                        msValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the hours (0-23) for a specified date according to local time.</p>
<p>If you do not specify the <code>minutesValue</code>, <code>secondsValue</code>, and <code>msValue</code> parameters, the values
returned from the <a href='#method-getUTCMinutes'>getUTCMinutes</a>, <a href='#method-getUTCSeconds'>getUTCSeconds</a>, and <a href='#method-getMilliseconds'>getMilliseconds</a> methods are used.</p>
<p>If a parameter you specify is outside of the expected range, setHours attempts to update the date
information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 100 for <code>secondsValue</code>, the
minutes will be incremented by 1 (min + 1), and 40 will be used for seconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay.setHours(7)
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setHours--hoursValue">hoursValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 23, representing the hour.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setHours--minutesValue">minutesValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the minutes.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setHours--secondsValue">secondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the seconds. If you specify the
<code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setHours--msValue">msValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds. If you specify the
<code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setMilliseconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setMilliseconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setMilliseconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setMilliseconds" class="member-name-link"><span data-ref="method-setMilliseconds" class="member-name">setMilliseconds</span></a>
            <span class="params-list"> (
                        
                        millisecondsValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the milliseconds (0-999) for a specified date according to local time.</p>
<p>If you specify a number outside the expected range, the date information in the <a href='Date.html'>Date</a> object is
updated accordingly. For example, if you specify 1005, the number of seconds is incremented by 1,
and 5 is used for the milliseconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setMilliseconds(100);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setMilliseconds--millisecondsValue">millisecondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setMinutes" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setMinutes" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setMinutes">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setMinutes" class="member-name-link"><span data-ref="method-setMinutes" class="member-name">setMinutes</span></a>
            <span class="params-list"> (
                        
                        minutesValue
                        , 
                        secondsValue
                        , 
                        msValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the minutes (0-59) for a specified date according to local time.</p>
<p>If you do not specify the <code>secondsValue</code> and <code>msValue</code> parameters, the values returned from
<a href='#method-getSeconds'>getSeconds</a> and <a href='#method-getMilliseconds'>getMilliseconds</a> methods are used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setMinutes'>setMinutes</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 100 for <code>secondsValue</code>,
the minutes (<code>minutesValue</code>) will be incremented by 1 (minutesValue + 1), and 40 will be used for
seconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay.setMinutes(45)
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setMinutes--minutesValue">minutesValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the minutes.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setMinutes--secondsValue">secondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the seconds. If you
specify the secondsValue parameter, you must also specify the <code>minutesValue</code>.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setMinutes--msValue">msValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds. If you specify
the <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setMonth" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setMonth" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setMonth">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setMonth" class="member-name-link"><span data-ref="method-setMonth" class="member-name">setMonth</span></a>
            <span class="params-list"> (
                        
                        monthValue
                        , 
                        dayValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the month (0-11) for a specified date according to local time.</p>
<p>If you do not specify the <code>dayValue</code> parameter, the value returned from the <a href='#method-getDate'>getDate</a> method is
used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setMonth'>setMonth</a> attempts to update the date
information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 15 for <code>monthValue</code>, the year
will be incremented by 1 (year + 1), and 3 will be used for month.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay.setMonth(6)
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setMonth--monthValue">monthValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 11 (representing the months January through
December).</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setMonth--dayValue">dayValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer from 1 to 31, representing the day of the month.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setSeconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setSeconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setSeconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setSeconds" class="member-name-link"><span data-ref="method-setSeconds" class="member-name">setSeconds</span></a>
            <span class="params-list"> (
                        
                        secondsValue
                        , 
                        msValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the seconds (0-59) for a specified date according to local time.</p>
<p>If you do not specify the <code>msValue</code> parameter, the value returned from the <a href='#method-getMilliseconds'>getMilliseconds</a> method
is used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setSeconds'>setSeconds</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 100 for <code>secondsValue</code>,
the minutes stored in the <a href='Date.html'>Date</a> object will be incremented by 1, and 40 will be used for seconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay.setSeconds(30)
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setSeconds--secondsValue">secondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setSeconds--msValue">msValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds. If you specify
the<code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setTime" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setTime" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setTime">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setTime" class="member-name-link"><span data-ref="method-setTime" class="member-name">setTime</span></a>
            <span class="params-list"> (
                        
                        timeValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the Date object to the time represented by a number of milliseconds since
January 1, 1970, 00:00:00 UTC, allowing for negative numbers for times prior.</p>
<p>Use the <a href='#method-setTime'>setTime</a> method to help assign a date and time to another <a href='Date.html'>Date</a> object.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date(&quot;July 1, 1999&quot;)
sameAsBigDay = new Date()
sameAsBigDay.setTime(theBigDay.getTime())
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setTime--timeValue">timeValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer representing the number of milliseconds since 1 January
1970, 00:00:00 UTC.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCDate" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCDate" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCDate">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCDate" class="member-name-link"><span data-ref="method-setUTCDate" class="member-name">setUTCDate</span></a>
            <span class="params-list"> (
                        
                        dayValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the day of the month (1-31) for a specified date according to universal time.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCDate'>setUTCDate</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 40 for <code>dayValue</code>, and
the month stored in the <a href='Date.html'>Date</a> object is June, the day will be changed to 10 and the month will be
incremented to July.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCDate(20);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCDate--dayValue">dayValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer from 1 to 31, representing the day of the month.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCFullYear" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCFullYear" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCFullYear">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCFullYear" class="member-name-link"><span data-ref="method-setUTCFullYear" class="member-name">setUTCFullYear</span></a>
            <span class="params-list"> (
                        
                        yearValue
                        , 
                        monthValue
                        , 
                        dayValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the full year (4 digits for 4-digit years) for a specified date according
to universal time.</p>
<p>If you do not specify the <code>monthValue</code> and <code>dayValue</code> parameters, the values returned from the
<a href='#method-getMonth'>getMonth</a> and <a href='#method-getDate'>getDate</a> methods are used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCFullYear'>setUTCFullYear</a> attempts to update
the other parameters and the date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you
specify 15 for <code>monthValue</code>, the year is incremented by 1 (year + 1), and 3 is used for the month.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCFullYear(1997);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCFullYear--yearValue">yearValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer specifying the numeric value of the year, for example, 1995.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCFullYear--monthValue">monthValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 11 representing the months January through
December.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCFullYear--dayValue">dayValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 1 and 31 representing the day of the month. If you
specify the <code>dayValue</code> parameter, you must also specify the <code>monthValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCHours" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCHours" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCHours">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCHours" class="member-name-link"><span data-ref="method-setUTCHours" class="member-name">setUTCHours</span></a>
            <span class="params-list"> (
                        
                        hoursValue
                        , 
                        minutesValue
                        , 
                        secondsValue
                        , 
                        msValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the hour (0-23) for a specified date according to universal time.</p>
<p>If you do not specify the <code>minutesValue</code>, <code>secondsValue</code>, and <code>msValue</code> parameters, the values
returned from the <a href='#method-getUTCMinutes'>getUTCMinutes</a>, <a href='#method-getUTCSeconds'>getUTCSeconds</a>, and <a href='#method-getUTCMilliseconds'>getUTCMilliseconds</a> methods are used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCHours'>setUTCHours</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 100 for <code>secondsValue</code>,
the minutes will be incremented by 1 (min + 1), and 40 will be used for seconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCHours(8);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCHours--hoursValue">hoursValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 23, representing the hour.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCHours--minutesValue">minutesValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the minutes.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCHours--secondsValue">secondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the seconds. If you specify the
<code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCHours--msValue">msValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds. If you specify the
<code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCMilliseconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCMilliseconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCMilliseconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCMilliseconds" class="member-name-link"><span data-ref="method-setUTCMilliseconds" class="member-name">setUTCMilliseconds</span></a>
            <span class="params-list"> (
                        
                        millisecondsValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the milliseconds (0-999) for a specified date according to universal time.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCMilliseconds'>setUTCMilliseconds</a> attempts to
update the date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 1100 for
<code>millisecondsValue</code>, the seconds stored in the Date object will be incremented by 1, and 100 will
be used for milliseconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCMilliseconds(500);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCMilliseconds--millisecondsValue">millisecondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCMinutes" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCMinutes" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCMinutes">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCMinutes" class="member-name-link"><span data-ref="method-setUTCMinutes" class="member-name">setUTCMinutes</span></a>
            <span class="params-list"> (
                        
                        minutesValue
                        , 
                        secondsValue
                        , 
                        msValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the minutes (0-59) for a specified date according to universal time.</p>
<p>If you do not specify the <code>secondsValue</code> and <code>msValue</code> parameters, the values returned from
<a href='#method-getUTCSeconds'>getUTCSeconds</a> and <a href='#method-getUTCMilliseconds'>getUTCMilliseconds</a> methods are used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCMinutes'>setUTCMinutes</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 100 for <code>secondsValue</code>,
the minutes (<code>minutesValue</code>) will be incremented by 1 (<code>minutesValue</code> + 1), and 40 will be used for
seconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCMinutes(43);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCMinutes--minutesValue">minutesValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the minutes.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCMinutes--secondsValue">secondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59, representing the seconds. If you specify the <code>secondsValue</code> parameter, you must also specify the <code>minutesValue</code>.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCMinutes--msValue">msValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds. If you specify the <code>msValue</code> parameter, you must also specify the <code>minutesValue</code> and <code>secondsValue</code>.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCMonth" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCMonth" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCMonth">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCMonth" class="member-name-link"><span data-ref="method-setUTCMonth" class="member-name">setUTCMonth</span></a>
            <span class="params-list"> (
                        
                        monthValue
                        , 
                        dayValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the month (0-11) for a specified date according to universal time.</p>
<p>If you do not specify the <code>dayValue</code> parameter, the value returned from the <a href='#method-getUTCDate'>getUTCDate</a> method is
used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCMonth'>setUTCMonth</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 15 for <code>monthValue</code>, the
year will be incremented by 1 (year + 1), and 3 will be used for month.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCMonth(11);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCMonth--monthValue">monthValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 11, representing the months January through
December.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCMonth--dayValue">dayValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer from 1 to 31, representing the day of the month.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-setUTCSeconds" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="setUTCSeconds" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-setUTCSeconds">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-setUTCSeconds" class="member-name-link"><span data-ref="method-setUTCSeconds" class="member-name">setUTCSeconds</span></a>
            <span class="params-list"> (
                        
                        secondsValue
                        , 
                        msValue
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Sets the seconds (0-59) for a specified date according to universal time.</p>
<p>If you do not specify the <code>msValue</code> parameter, the value returned from the <a href='#method-getUTCMilliseconds'>getUTCMilliseconds</a>
methods is used.</p>
<p>If a parameter you specify is outside of the expected range, <a href='#method-setUTCSeconds'>setUTCSeconds</a> attempts to update the
date information in the <a href='Date.html'>Date</a> object accordingly. For example, if you use 100 for <code>secondsValue</code>,
the minutes stored in the <a href='Date.html'>Date</a> object will be incremented by 1, and 40 will be used for seconds.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">theBigDay = new Date();
theBigDay.setUTCSeconds(20);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCSeconds--secondsValue">secondsValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="method-setUTCSeconds--msValue">msValue</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A number between 0 and 999, representing the milliseconds.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>New date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="method-toDateString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toDateString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toDateString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toDateString" class="member-name-link"><span data-ref="method-toDateString" class="member-name">toDateString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the &quot;date&quot; portion of the Date as a human-readable string in American English.</p>
<p><a href='Date.html'>Date</a> instances refer to a specific point in time. Calling <a href='#method-toString'>toString</a> will return the
date formatted in a human readable form in American English. In SpiderMonkey, this consists of the
date portion (day, month, and year) followed by the time portion (hours, minutes, seconds, and time
zone). Sometimes it is desirable to obtain a string of the date portion; such a thing can be
accomplished with the <a href='#method-toDateString'>toDateString</a> method.</p>
<p>The <a href='#method-toDateString'>toDateString</a> method is especially useful because compliant engines implementing ECMA-262 may
differ in the string obtained from <a href='#method-toString'>toString</a> for <a href='Date.html'>Date</a> objects, as the format is implementation-
dependent and simple string slicing approaches may not produce consistent results across multiple
engines.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var d = new Date(1993, 6, 28, 14, 39, 7);
println(d.toString()); // prints Wed Jul 28 1993 14:39:07 GMT-0600 (PDT)
println(d.toDateString()); // prints Wed Jul 28 1993
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Human-readable string, in local time.</p>
</div>

    </div>
  
                            <div id="method-toJSON" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toJSON" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toJSON">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toJSON" class="member-name-link"><span data-ref="method-toJSON" class="member-name">toJSON</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns a JSON representation of the Date object.</p>
<p>Date instances refer to a specific point in time. Calling <code>toJSON()</code>
returns a JSON formatted string representing the Date object&#39;s
value.  This method is generally intended to, by default, usefully
serialize Date objects during JSON serialization.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var jsonDate = (new Date()).toJSON();
var backToDate = new Date(jsonDate);

console.log(&quot;Serialized date object: &quot; + jsonDate);
// Serialized date object: 2013-01-17T12:59:08.449Z
</code></pre></div><p><strong>NOTE:</strong> This method is part of the ECMAScript 5 standard.</p>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Date value in <code>YYYY-MM-DDTHH-MM-SS.MMMZ</code> format.</p>
</div>

    </div>
  
                            <div id="method-toLocaleDateString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toLocaleDateString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toLocaleDateString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toLocaleDateString" class="member-name-link"><span data-ref="method-toLocaleDateString" class="member-name">toLocaleDateString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the &quot;date&quot; portion of the Date as a string, using the current locale&#39;s
conventions.</p>
<p>The <a href='#method-toLocaleDateString'>toLocaleDateString</a> method relies on the underlying operating system in formatting dates. It
converts the date to a string using the formatting convention of the operating system where the
script is running. For example, in the United States, the month appears before the date (04/15/98),
whereas in Germany the date appears before the month (15.04.98). If the operating system is not
year-2000 compliant and does not use the full year for years before 1900 or over 2000,
<a href='#method-toLocaleDateString'>toLocaleDateString</a> returns a string that is not year-2000 compliant. <a href='#method-toLocaleDateString'>toLocaleDateString</a> behaves
similarly to <a href='#method-toString'>toString</a> when converting a year that the operating system does not properly format.</p>
<p>Methods such as <a href='#method-getDate'>getDate</a>, <a href='#method-getMonth'>getMonth</a>, and <a href='#method-getFullYear'>getFullYear</a> give more portable results than
<a href='#method-toLocaleDateString'>toLocaleDateString</a>. Use <a href='#method-toLocaleDateString'>toLocaleDateString</a> when the intent is to display to the user a string
formatted using the regional format chosen by the user. Be aware that this method, due to its
nature, behaves differently depending on the operating system and on the user&#39;s settings.</p>
<p>In the following example, <code>today</code> is a <a href='Date.html'>Date</a> object:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">today = new Date(95,11,18,17,28,35) //months are represented by 0 to 11
today.toLocaleDateString()
</code></pre></div><p>In this example, <a href='#method-toLocaleDateString'>toLocaleDateString</a> returns a string value that is similar to the following form.
The exact format depends on the platform, locale and user&#39;s settings.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">12/18/95
</code></pre></div><p>You shouldn&#39;t use this method in contexts where you rely on a particular format or locale.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">&quot;Last visit: &quot; + someDate.toLocaleDateString(); // Good example
&quot;Last visit was at &quot; + someDate.toLocaleDateString(); // Bad example
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Human-readable string that may be formatted differently depending
on the country.</p>
</div>

    </div>
  
                            <div id="method-toLocaleString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toLocaleString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toLocaleString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toLocaleString" class="member-name-link"><span data-ref="method-toLocaleString" class="member-name">toLocaleString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Converts a date to a string, using the current locale&#39;s conventions. Overrides
the <code>Object.toLocaleString</code> method.</p>
<p>The <a href='#method-toLocaleString'>toLocaleString</a> method relies on the underlying operating system in formatting dates. It
converts the date to a string using the formatting convention of the operating system where the
script is running. For example, in the United States, the month appears before the date (04/15/98),
whereas in Germany the date appears before the month (15.04.98). If the operating system is not
year-2000 compliant and does not use the full year for years before 1900 or over 2000,
<a href='#method-toLocaleString'>toLocaleString</a> returns a string that is not year-2000 compliant. <a href='#method-toLocaleString'>toLocaleString</a> behaves
similarly to <a href='#method-toString'>toString</a> when converting a year that the operating system does not properly format.</p>
<p>Methods such as <a href='#method-getDate'>getDate</a>, <a href='#method-getMonth'>getMonth</a>, <a href='#method-getFullYear'>getFullYear</a>, <a href='#method-getHours'>getHours</a>, <a href='#method-getMinutes'>getMinutes</a>, and <a href='#method-getSeconds'>getSeconds</a>
give more portable results than <a href='#method-toLocaleString'>toLocaleString</a>. Use <a href='#method-toLocaleString'>toLocaleString</a> when the intent is to
display to the user a string formatted using the regional format chosen by the user. Be aware that
this method, due to its nature, behaves differently depending on the operating system and on the
user&#39;s settings.</p>
<p>In the following example, <code>today</code> is a <a href='Date.html'>Date</a> object:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">today = new Date(95,11,18,17,28,35); //months are represented by 0 to 11
today.toLocaleString();
</code></pre></div><p>In this example, <a href='#method-toLocaleString'>toLocaleString</a> returns a string value that is similar to the following form. The
exact format depends on the platform, locale and user&#39;s settings.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">12/18/95 17:28:35
</code></pre></div><p>You shouldn&#39;t use this method in contexts where you rely on a particular format or locale.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">&quot;Last visit: &quot; + someDate.toLocaleString(); // Good example
&quot;Last visit was at &quot; + someDate.toLocaleString(); // Bad example
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Human-readable string that may be formatted differently depending
on the country.</p>
</div>

    </div>
  
                            <div id="method-toLocaleTimeString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toLocaleTimeString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toLocaleTimeString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toLocaleTimeString" class="member-name-link"><span data-ref="method-toLocaleTimeString" class="member-name">toLocaleTimeString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the &quot;time&quot; portion of the Date as a string, using the current locale&#39;s
conventions.</p>
<p>The <a href='#method-toLocaleTimeString'>toLocaleTimeString</a> method relies on the underlying operating system in formatting dates. It
converts the date to a string using the formatting convention of the operating system where the
script is running. For example, in the United States, the month appears before the date (04/15/98),
whereas in Germany the date appears before the month (15.04.98).</p>
<p>Methods such as <a href='#method-getHours'>getHours</a>, <a href='#method-getMinutes'>getMinutes</a>, and <a href='#method-getSeconds'>getSeconds</a> give more consistent results than
<a href='#method-toLocaleTimeString'>toLocaleTimeString</a>. Use <a href='#method-toLocaleTimeString'>toLocaleTimeString</a> when the intent is to display to the user a string
formatted using the regional format chosen by the user. Be aware that this method, due to its
nature, behaves differently depending on the operating system and on the user&#39;s settings.</p>
<p>In the following example, <code>today</code> is a <a href='Date.html'>Date</a> object:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">today = new Date(95,11,18,17,28,35) //months are represented by 0 to 11
today.toLocaleTimeString()
</code></pre></div><p>In this example, <a href='#method-toLocaleTimeString'>toLocaleTimeString</a> returns a string value that is similar to the following form.
The exact format depends on the platform.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">17:28:35
</code></pre></div><p>You shouldn&#39;t use this method in contexts where you rely on a particular format or locale.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">&quot;Last visit: &quot; + someDate.toLocaleTimeString(); // Good example
&quot;Last visit was at &quot; + someDate.toLocaleTimeString(); // Bad example
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Human-readable string that may be formatted differently depending
on the country.</p>
</div>

    </div>
  
                            <div id="method-toString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toString" class="member-name-link"><span data-ref="method-toString" class="member-name">toString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns a string representing the specified Date object. Overrides the
<code>Object.prototype.toString</code> method.</p>
<p>The <a href='Date.html'>Date</a> object overrides the toString method of the Object object; it does not inherit
<code>Object.toString</code>. For <a href='Date.html'>Date</a> objects, the <a href='#method-toString'>toString</a> method returns a string representation of the
object.</p>
<p><a href='#method-toString'>toString</a> always returns a string representation of the date in American English.</p>
<p>JavaScript calls the <a href='#method-toString'>toString</a> method automatically when a date is to be represented as a text
value or when a date is referred to in a string concatenation.</p>
<p>The following assigns the <a href='#method-toString'>toString</a> value of a <a href='Date.html'>Date</a> object to <code>myVar</code>:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">x = new Date();
myVar=x.toString();   //assigns a value to myVar similar to:
//Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Human-readable string of the date in local time.</p>
</div>

    </div>
  
                            <div id="method-toTimeString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toTimeString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toTimeString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toTimeString" class="member-name-link"><span data-ref="method-toTimeString" class="member-name">toTimeString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the &quot;time&quot; portion of the Date as a human-readable string.</p>
<p><a href='Date.html'>Date</a> instances refer to a specific point in time. Calling <a href='#method-toString'>toString</a> will return the
date formatted in a human readable form in American English. In SpiderMonkey, this consists of the
date portion (day, month, and year) followed by the time portion (hours, minutes, seconds, and
time zone). Sometimes it is desirable to obtain a string of the time portion; such a thing can be
accomplished with the <a href='#method-toTimeString'>toTimeString</a> method.</p>
<p>The <a href='#method-toTimeString'>toTimeString</a> method is especially useful because compliant engines implementing ECMA-262 may
differ in the string obtained from <a href='#method-toString'>toString</a> for <a href='Date.html'>Date</a> objects, as the format is implementation-
dependent; simple string slicing approaches may not produce consistent results across multiple
engines.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var d = new Date(1993, 6, 28, 14, 39, 7);
println(d.toString()); // prints Wed Jul 28 1993 14:39:07 GMT-0600 (PDT)
println(d.toTimeString()); // prints 14:39:07 GMT-0600 (PDT)
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>Human-readable string of the date in local time.</p>
</div>

    </div>
  
                            <div id="method-toUTCString" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="toUTCString" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-toUTCString">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-toUTCString" class="member-name-link"><span data-ref="method-toUTCString" class="member-name">toUTCString</span></a>
            
                :
                    <span class="memberType"><a href='String.html'>String</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Converts a date to a string, using the universal time convention.</p>
<p>The value returned by <a href='#method-toUTCString'>toUTCString</a> is a readable string in American English in the UTC time zone.
The format of the return value may vary according to the platform.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">var today = new Date();
var UTCstring = today.toUTCString();
// Mon, 03 Jul 2006 21:44:38 GMT
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='String.html'>String</a></span>
                <div class="return-desc"><p>String of the date in UTC.</p>
</div>

    </div>
  
                            <div id="method-valueOf" class="classmembers member member-public isNotStatic  is-not-inherited    " data-member-name="valueOf" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-method-valueOf">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#method-valueOf" class="member-name-link"><span data-ref="method-valueOf" class="member-name">valueOf</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
            </div>
        </h2>

            <p>Returns the primitive value of a Date object. Overrides the
Object.prototype.valueOf method.</p>
<p>The <a href='#method-valueOf'>valueOf</a> method returns the primitive value of a <a href='Date.html'>Date</a> object as a number data type, the
number of milliseconds since midnight 01 January, 1970 UTC.</p>
<p>This method is functionally equivalent to the <a href='#method-getTime'>getTime</a> method.</p>
<p>This method is usually called internally by JavaScript and not explicitly in code.</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">x = new Date(56, 6, 17);
myVar = x.valueOf();      //assigns -424713600000 to myVar
</code></pre></div>
            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Date represented as milliseconds.</p>
</div>

    </div>
  
                            <div id="static-method-now" class="classmembers member member-public isStatic  is-not-inherited    " data-member-name="now" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-static-method-now">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#static-method-now" class="member-name-link"><span data-ref="static-method-now" class="member-name">now</span></a>
            
                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
                    <span class="static full-flag">static</span>
                    <span class="static mini-flag">sta</span>
            </div>
        </h2>

            <p>Returns the numeric value corresponding to the current time.</p>
<p>The <a href='#static-method-now'>now</a> method returns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now as
a number.</p>
<p>When using <a href='#static-method-now'>now</a> to create timestamps or unique IDs, keep in mind that the resolution may be 15
milliseconds on Windows, so you could end up with several equal values if <a href='#static-method-now'>now</a> is called multiple
times within a short time span.</p>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.</p>
</div>

    </div>
  
                            <div id="static-method-parse" class="classmembers member member-public isStatic  is-not-inherited    " data-member-name="parse" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-static-method-parse">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#static-method-parse" class="member-name-link"><span data-ref="static-method-parse" class="member-name">parse</span></a>
            <span class="params-list"> (
                        
                        dateString
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
                    <span class="static full-flag">static</span>
                    <span class="static mini-flag">sta</span>
            </div>
        </h2>

            <p>Parses a string representation of a date, and returns the number of milliseconds
since January 1, 1970, 00:00:00, local time.</p>
<p>The <a href='#static-method-parse'>parse</a> method takes a date string (such as <code>&quot;Dec 25, 1995&quot;</code>) and returns the number of
milliseconds since January 1, 1970, 00:00:00 UTC. The local time zone is used to interpret
arguments that do not contain time zone information. This function is useful for setting date
values based on string values, for example in conjunction with the <a href='#method-setTime'>setTime</a> method and the
<a href='Date.html'>Date</a> object.</p>
<p>Given a string representing a time, parse returns the time value. It accepts the IETF standard (RFC
1123 Section 5.2.14 and elsewhere) date syntax: <code>&quot;Mon, 25 Dec 1995 13:30:00 GMT&quot;</code>. It understands
the continental US time-zone abbreviations, but for general use, use a time-zone offset, for
example, <code>&quot;Mon, 25 Dec 1995 13:30:00 GMT+0430&quot;</code> (4 hours, 30 minutes east of the Greenwich
meridian). If you do not specify a time zone, the local time zone is assumed. GMT and UTC are
considered equivalent.</p>
<h3>Using parse</h3>
<p>If <code>IPOdate</code> is an existing <a href='Date.html'>Date</a> object, then you can set it to August 9, 1995 (local time) as
follows:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">IPOdate.setTime(Date.parse(&quot;Aug 9, 1995&quot;));
</code></pre></div><p>Some other examples:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">// Returns 807937200000 in time zone GMT-0300, and other values in other
// timezones, since the argument does not specify a time zone.
Date.parse(&quot;Aug 9, 1995&quot;);

// Returns 807926400000 no matter the local time zone.
Date.parse(&quot;Wed, 09 Aug 1995 00:00:00 GMT&quot;);

// Returns 807937200000 in timezone GMT-0300, and other values in other
// timezones, since there is no time zone specifier in the argument.
Date.parse(&quot;Wed, 09 Aug 1995 00:00:00&quot;);

// Returns 0 no matter the local time zone.
Date.parse(&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;);

// Returns 14400000 in timezone GMT-0400, and other values in other
// timezones, since there is no time zone specifier in the argument.
Date.parse(&quot;Thu, 01 Jan 1970 00:00:00&quot;);

// Returns 14400000 no matter the local time zone.
Date.parse(&quot;Thu, 01 Jan 1970 00:00:00 GMT-0400&quot;);
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-parse--dateString">dateString</span> :
                            <span class="memberType">&nbsp;<a href='String.html'>String</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A string representing a date.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Number of milliseconds since January 1, 1970, 00:00:00, local time.</p>
</div>

    </div>
  
                            <div id="static-method-UTC" class="classmembers member member-public isStatic  is-not-inherited    " data-member-name="UTC" >
        <div class="collapse-toggle"></div>
        <div class="source-class"><a href="Date.html">Date<div class="viewSource"><a target="_blank" href="src/Date.js.html#Date-static-method-UTC">view source</a></div></a></div>
        <h2 class="member-header">
            <a href="#static-method-UTC" class="member-name-link"><span data-ref="static-method-UTC" class="member-name">UTC</span></a>
            <span class="params-list"> (
                        
                        year
                        , 
                        month
                        , 
                        date
                        , 
                        hrs
                        , 
                        min
                        , 
                        sec
                        , 
                        ms
                            

                )</span>

                :
                    <span class="memberType"><a href='Number.html'>Number</a></span>

            <div class="member-tags">
                    <span class="static full-flag">static</span>
                    <span class="static mini-flag">sta</span>
            </div>
        </h2>

            <p>Accepts the same parameters as the longest form of the constructor, and returns
the number of milliseconds in a <a href='Date.html'>Date</a> object since January 1, 1970, 00:00:00,
universal time.</p>
<p><a href='#static-method-UTC'>UTC</a> takes comma-delimited date parameters and returns the number of milliseconds between January
1, 1970, 00:00:00, universal time and the time you specified.</p>
<p>You should specify a full year for the year; for example, 1998. If a year between 0 and 99 is
specified, the method converts the year to a year in the 20th century (1900 + year); for example,
if you specify 95, the year 1995 is used.</p>
<p>The <a href='#static-method-UTC'>UTC</a> method differs from the <a href='Date.html'>Date</a> constructor in two ways.</p>
<ul>
<li><code>Date.UTC</code> uses universal time instead of the local time.</li>
<li><code>Date.UTC</code> returns a time value as a number instead of creating a <a href='Date.html'>Date</a> object.</li>
</ul>
<p>If a parameter you specify is outside of the expected range, the <a href='#static-method-UTC'>UTC</a> method updates the other
parameters to allow for your number. For example, if you use 15 for month, the year will be
incremented by 1 (year + 1), and 3 will be used for the month.</p>
<p>Because <a href='#static-method-UTC'>UTC</a> is a static method of <a href='Date.html'>Date</a>, you always use it as <code>Date.UTC()</code>, rather than as a
method of a <a href='Date.html'>Date</a> object you created.
The following statement creates a <a href='Date.html'>Date</a> object using GMT instead of local time:</p>
<div class="code-snippet-wrap"><div class="code-controls example-collapse-target"><span class="collapse-tool"></span><span class="expand-tool"></span>Sample Code</div><pre><code class="language-javascript">gmtDate = new Date(Date.UTC(96, 11, 1, 0, 0, 0));
</code></pre></div>
            <h3 class="detail-header">Parameters</h3>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--year">year</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>A year after 1900.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--month">month</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 11 representing the month.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--date">date</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 1 and 31 representing the day of the month.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--hrs">hrs</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 23 representing the hours.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--min">min</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59 representing the minutes.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--sec">sec</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 59 representing the seconds.</p>
</div>

                </div>
                <div class="param-row">
                    <p><span class="params-list param-list-item" id="static-method-UTC--ms">ms</span> :
                            <span class="memberType">&nbsp;<a href='Number.html'>Number</a></span>
                        
                    </p>
                    <div class="params-desc"><p>An integer between 0 and 999 representing the milliseconds.</p>
</div>

                </div>

            <h3 class="detail-header">Returns</h3>
                :<span style="margin-left:12px;" class="memberType"><a href='Number.html'>Number</a></span>
                <div class="return-desc"><p>Number of milliseconds since January 1, 1970, 00:00:00, universal time.</p>
</div>

    </div>
  
                </div>
        </div>
    </div>
    <div id="footer">
        <p>
            <a href="../../https@www.facebook.com/senchainc/" target="_blank"><img class="social" src="home-images/fb.png"/></a>
            <a href="../../https@www.linkedin.com/company/sencha-inc" target="_blank"><img class="social" src="home-images/in.png"/></a>
            <a href="../../https@twitter.com/Sencha" target="_blank"><img class="social" src="home-images/twt.png"/></a>
            Sencha Test 1.0.3  | <a href='../../https@www.sencha.com/legal/terms-of-use/' target='_blank'>Terms of Use</a>
        </p>
    </div>
</div>

        </div>
    </div>
    <h2 class="product-header"><a href="index.html">Sencha Test 1.0.3 </a>
        <span data-tip="Product / Version Menu" class="fa fa-chevron-circle-down product-menu-btn tooltip tooltip-tl-bl"><div class="callout callout-b"></div></span>
        <div id="peekaboo-input" class="peekaboo-input">
            <input type="text" id="mobile-input" />
        </div>
    </h2>

    <div id="product-tree-ct" class="hide">
        <div id="product-tree">
            <div class="product-name-ct">
                    <div id="product-menu-extjs" class="product-name-item">Ext JS</div>
                    <div id="product-menu-sencha_test" class="product-name-item">Sencha Test</div>
                    <div id="product-menu-cmd" class="product-name-item">Cmd</div>
                    <div id="product-menu-gxt" class="product-name-item">GXT</div>
                    <div id="product-menu-ide_plugins" class="product-name-item">IDE Plugins</div>
                    <div id="product-menu-sencha_inspector" class="product-name-item">Sencha Inspector</div>
                    <div id="product-menu-architect" class="product-name-item">Architect</div>
                    <div id="product-menu-touch" class="product-name-item">Touch</div>
                    <div id="product-menu-webappmgr" class="product-name-item">Web Application Manager</div>
            </div>
                <div class="product-version-ct hide extjs">
                        <h2>Ext JS</h2>
                            <h3>6.x</h3>
                                        <div class="compound-product-item">6.2.0 EA
                                                <a  href="../extjs/6.2.0-classic/index.html">(classic)</a>
                                                <a  href="../extjs/6.2.0-modern/index.html">(modern)</a>
                                        </div>
                                        <div class="compound-product-item">6.0.2
                                                <a  href="../extjs/6.0.2-classic/index.html">(classic)</a>
                                                <a  href="../extjs/6.0.2-modern/index.html">(modern)</a>
                                        </div>
                                        <div class="compound-product-item">6.0.1
                                                <a  href="../extjs/6.0.1-classic/index.html">(classic)</a>
                                                <a  href="../extjs/6.0.1-modern/index.html">(modern)</a>
                                        </div>
                                        <div class="compound-product-item">6.0.0
                                                <a  href="../extjs/6.0.0-classic/index.html">(classic)</a>
                                                <a  href="../extjs/6.0.0-modern/index.html">(modern)</a>
                                        </div>
                            <h3>5.x</h3>
                                        <a class="product-item" href="../extjs/5.1.3/index.html">5.1.3</a>
                                        <a class="product-item" href="../extjs/5.1.2/index.html">5.1.2</a>
                                        <a class="product-item" href="../extjs/5.1.1/index.html">5.1.1</a>
                                        <a class="product-item" href="../extjs/5.1.0/index.html">5.1.0</a>
                                        <a class="product-item" href="../extjs/5.0.1/index.html">5.0.1</a>
                                        <a class="product-item" href="../extjs/5.0.0/index.html">5.0.0</a>
                            <h3>4.x</h3>
                                        <a class="product-item" href="../extjs/4.2.5/">4.2.5</a>
                                        <a class="product-item" href="../extjs/4.1.3/">4.1.3</a>
                                        <a class="product-item" href="../extjs/4.0.7/">4.0.7</a>
                            <h3>3.x</h3>
                                        <a class="product-item" href="../extjs/3.4.0/">3.4.0</a>
                </div>
                <div class="product-version-ct hide sencha_test">
                        <h2>Sencha Test</h2>
                        <a  href="index.html">Sencha Test</a>
                </div>
                <div class="product-version-ct hide cmd">
                        <h2>Cmd</h2>
                        <a  href="../cmd/index.html">Cmd</a>
                </div>
                <div class="product-version-ct hide gxt">
                        <h2>GXT</h2>
                                <a class="product-item" href="../gxt/4.x/index.html">4.x</a>
                                <a class="product-item" href="../gxt/3.x/index.html">3.x</a>
                </div>
                <div class="product-version-ct hide ide_plugins">
                        <h2>IDE Plugins</h2>
                        <a  href="../ide_plugins/index.html">IDE Plugins</a>
                </div>
                <div class="product-version-ct hide sencha_inspector">
                        <h2>Sencha Inspector</h2>
                        <a  href="../sencha_inspector/index.html">Sencha Inspector</a>
                </div>
                <div class="product-version-ct hide architect">
                        <h2>Architect</h2>
                                <a class="product-item" href="../architect/3/index.html">Architect 3</a>
                                <a class="product-item" href="../architect/4/index.html">Architect 4 EA</a>
                </div>
                <div class="product-version-ct hide touch">
                        <h2>Touch</h2>
                            <h3>2.x</h3>
                                        <a class="product-item" href="../touch/2.4/index.html">Touch 2.4</a>
                                        <a class="product-item" href="../touch/2.3.1/">Touch 2.3</a>
                                        <a class="product-item" href="../touch/2.2.1/">Touch 2.2</a>
                                        <a class="product-item" href="../touch/2.0.2/">Touch 2.0</a>
                </div>
                <div class="product-version-ct hide webappmgr">
                        <h2>Web Application Manager</h2>
                        <a  href="../webappmgr/index.html">Web Application Manager</a>
                </div>
        </div>
    </div>

    <div id="historyConfigPanel">
        <div class="history-type-selector">
            <input id="historyTypeCurrent" type="radio" name="historyType" value="current" checked="true" />
            <label for="historyTypeCurrent">Current Product / Version</label><br>
            <input id="historyTypeAll" type="radio" name="historyType" value="all" />
            <label for="historyTypeAll">All</label><br>
            <div id="history-label-toggle">
                <input id="history-all-labels" type="checkbox" checked="true" />
                <label for="history-all-labels">Show product details in the history bar</label>
                <div class="mask"></div>
            </div>
            <span id="history-clear" class="tooltip tooltip-tr-br" data-tip="Clear History"><div class="history-clear callout callout-b"></div></span>
        </div>
        <div id="history-full-list"></div>
    </div>

    <div id="search-history-panel"></div>

</body>
    <script type="text/javascript" src="js/searchIndex.js"></script>
    <script type="text/javascript" src="js/guideSearch.js"></script>
<!--[if lt IE 9 ]>
<script type="text/javascript" src="js/media-query-poly.js"></script>
<style>
    span.da-inline-fiddle-nav-fiddle.x-fa.fa-play-circle {
        display: none;
    }
</style>
<![endif]-->
<script>
    if (navigator.userAgent.indexOf("Safari") > -1) {
        window.onpageshow = function(event) {
            if (event.persisted) {
                window.location.reload()
            }
        };
    }

    document.onreadystatechange = function () {
        if (document.readyState == "interactive") {
            //
        }
    }
</script>

</html>
